<?php

class votes extends Controller
{
    public function index()
    {
    	// Verify if admin is logge in, otherwise redirect out
    	Helper::verifyAdminLoggedIn();
    	Helper::verifySuperAdminLoggedIn();
    	
        $votes = $this->model->getAllVotes();

        require APP . 'views/admin_templates/header.php';
        require APP . 'views/votes/index.php';
        require APP . 'views/admin_templates/footer.php';
    }
}
